#pragma once
#include <map>
#include <mutex>
#include "CameraIpc.h"
class ManageCamera
{
public:
	ManageCamera();
	~ManageCamera();

	bool CreateCamIpc(std::string ipcName, const char * url);

	bool CloseCamIpc(std::string ipcName);

	int GetWidthHeight(std::string ipcName, int &width, int &height);

	unsigned char * GetImageData(std::string ipcName);





private:
	CameraIpc * pCameraIpcArray[10];

	std::map<std::string, CameraIpc *> mapCameraIpc;
	std::mutex mapMutex;

};

